//Function: to calculate the profits of money
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
using std::fixed;
using std::left;
#include <iomanip>
using std::setw;
using std::setprecision;

#include <cmath>

int main()
{
	double amount = 0;
	double principal = 1000.0;
	double rate = .05;
	
	cout << "Year" << setw(21) << "Amount on deposit" << endl;
	cout << fixed << setprecision(2) << endl;
	
	for(int year = 1; year <= 10; year++)
	{
		amount = principal*pow(1.0+rate,year);
		cout << left << setw(4) << year << setw(21) << amount << endl;
	} 
	
	return 0;
}

